﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TimeForing.Common;
using TimeForing.Models;
using System.Web.Mvc;

namespace TimeForing.Controllers
{
    public class IndexViewModel
    {
        public SelectList Users { get; private set; }
        public SelectList Weeks { get; private set; }

        public IndexViewModel()
        {
            TimeforingRepository repo = new TimeforingRepository();
            Users = repo.GetUsersList();
            Weeks = Util.GenerateWeekDropdown(DateTime.Today);
            
        }
    }
}
